home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
BASIC
/
LIB
/
EVENTSHELL
/
DOCS
/
FontMenu
< prev
next >
Wrap
Text File
|
1996-04-11
|
3KB
|
119 lines
This extension library should be installed using
the LIBRARY command and initialised with a call
to FN_shell_FontMenu_Init. This call must be
made AFTER PROCshell_Init has been called.
--------------------------------------------------------
FN_shell_FontMenu_Init
=> None
<= bool TRUE if module initialised correctly
FALSE otherwise
--------------------------------------------------------
FNshell_FontMenu_IsInitialised
=> none
<= bool TRUE if fontmenu module has
been initialised, otherwise FALSE.
--------------------------------------------------------
FNshell_FontMenu_GetHandle
=> none
<= int menu handle
--------------------------------------------------------
FNshell_FontMenu_OffersSystemFont
=> none
<= bool TRUE if fontmenu module contains a
'SystemFont' item, otherwise FALSE.
--------------------------------------------------------
FNshell_FontMenu_GetLastSelectedFont
=> none
<= str name of last valid font selected from
the menu i.e. 'Trinity.Medium'
If no valid font menu selection has been made
the function will return "" and no action should
be taken.
--------------------------------------------------------
FNshell_FontMenu_GetNrFonts
=> none
<= int nr of fonts in menu
--------------------------------------------------------
PROCshell_AttachFontMenu()
=> int window handle
int icon handle to attach menu to
int icon handle to display selection
str function to call when menu_select
event occurs (optional, may be "")
str function to call before the menu
opens (optional, may be "")
Use this routine to attach the FontMenu to an icon or
a window. Attach the FontMenu to an existing menu
structure with <PROCshell_AttachFontSubMenu>.
This routine will NOT attempt to load the necessary
'FontMenu' support module if it is not already
loaded. Add an entry in the !Run file to load it.
Selection FN (PROCshell_AttachFontMenu)
=> int window handle
int display icon handle
str name of selected font i.e
'Trinity.Medium'.
<= int no meaning
PreOpen FN (PROCshell_AttachFontMenu)
=> int handle of menu
<= int no meaning
Example !Run file entry (FontMenu)
RMEnsure FontMenu 1.16 RMLoad <EvntShell$Path>FontMenu
RMEnsure FontMenu 1.16 Error Couldn't load FontMenu Module
--------------------------------------------------------
PROCshell_FontMenu_SelectFont()
=> str name of font to select i.e.
'Trinity.Medium'
The font name is used by the library routines
to decide which font name to select when the
font menu opens. As the same font menu can be
used by different applications it is important
to set this up just before the menu opens.
--------------------------------------------------------
PROCshell_FontMenu_AllowSystemFont
=> none
The 'SystemFont' item appears in the menu after this
call.
--------------------------------------------------------
PROCshell_FontMenu_DisallowSystemFont
=> none
The 'SystemFont' item does not appear in the menu after
this call.
--------------------------------------------------------